package com.wenhai.leetcode.string;

/**
 * @ClassName _1119删去字符串中的元音
 * @Description  https://leetcode-cn.com/problems/remove-vowels-from-a-string/
 * @Author 谢文海
 * @Date 2021/2/9 20:47
 * @Version 1.0
 **/
public class _1119删去字符串中的元音 {
    public String removeVowels(String s) {
        StringBuilder sb = new StringBuilder();
        for (char c : s.toCharArray()) {
            if (c != 'a' && c != 'e' && c != 'i' && c != 'o' && c != 'u')
                sb.append(c);
        }
        return sb.toString();



    }
}
